import request from '@/utils/request'

// 查询OQC检验项列表
export function listOqcInspectionItem(query) {
  return request({
    url: '/mes/qc/oqcInspectionItem/list',
    method: 'get',
    params: query
  })
}

// 查询OQC检验项详细
export function getOqcInspectionItem(id) {
  return request({
    url: '/mes/qc/oqcInspectionItem/' + id,
    method: 'get'
  })
}

// 新增OQC检验项
export function addOqcInspectionItem(data) {
  return request({
    url: '/mes/qc/oqcInspectionItem',
    method: 'post',
    data: data
  })
}

// 修改OQC检验项
export function updateOqcInspectionItem(data) {
  return request({
    url: '/mes/qc/oqcInspectionItem',
    method: 'put',
    data: data
  })
}

// 删除OQC检验项
export function delOqcInspectionItem(id) {
  return request({
    url: '/mes/qc/oqcInspectionItem/' + id,
    method: 'delete'
  })
}
